#include <stdio.h>
#include "drawingListener.h"
#include "drawingEvent.h"

DrawingListener::DrawingListener(int sub)
{
	drawing_event_subtype = sub;
}

DrawingListener::~DrawingListener()
{
	
}

bool DrawingListener::checkEvent(Event& evt)
{
	if (evt.getType() == DRAWING_EVENT_TYPE)
	{
		DrawingEvent* devt = (DrawingEvent*)&evt;
		if (devt->getSubType() == drawing_event_subtype)
		{
			return true;
		}
		else return false;
	}
		
	else return false;
}

::std::string DrawingListener::name()
{
	return "DrawingListener";
}
